var templateControllers = angular.module('templateControllers' , []);

//controllers.controller('templateList' , ['$scope'  , 'Template' ,  '$location', 
templateControllers.controller('templateList' , ['$scope'  ,  'Template' ,   
  function ($scope  , Template){  
  	$scope.json = Template.query();
  	$scope.data = Template.get();
  	$scope.templates = $scope.json.body.data;
  } ] );

